<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2018/9/24
 * Time: 22:22
 */

class Teacher
{
    private $name;
    private $age;
    private $gender;


public function introduce()
{
    echo "我是你们的".$this->name." 且是一位年仅".$this->age."岁的帅气且可爱的".$this->gender."老师哟"."<br>";

}

public function __set($name1, $value)
{
    // TODO: Implement __set() method.
    $this->$name1=$value;
}

public  function  __get($name1)
{
    // TODO: Implement __get() method.
   return $this->$name1;
}

}